import request from "@/utils/request";
import qs from "qs";

export const getTopiclist = async (sectionId: any) => {
  const data = { sectionId };
  return await request.post("/topicManager/list", qs.stringify(data), {
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
};
// 删除题目
export const deleteTopic = async (topicId: any) => {
  return await request.delete(`/topicManager/deleteTopic?topicId=${topicId}`);
};
